-- GENERATED SPELL FOR [Ursius] --


function spell0_10806(pUnit, Event) --@Demoralizing Roar,Self--
pUnit:FullCastSpellOnTarget(15971,pUnit)
pUnit:RegisterEvent('Sorts_10806', 30293, 1)
end

function spell1_10806(pUnit, Event) --@Maul,n/a--
pUnit:FullCastSpellOnTarget(15793,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10806', 646, 1)
end

function Sorts_10806(pUnit, Event)
local choix_sorts_10806 = math.random(0, 1)
if choix_sorts_10806 == 0 then
pUnit:RegisterEvent('spell0_10806', 1, 1)
end
if choix_sorts_10806 == 1 then
pUnit:RegisterEvent('spell1_10806', 1, 1)
end
end

function mob10806_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10806', math.random(1500, 3000), 1)
end

function mob10806_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10806_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10806_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10806, 1, 'mob10806_Action')
RegisterUnitEvent(10806, 2, 'mob10806_Leave')
RegisterUnitEvent(10806, 3, 'mob10806_Kill')
RegisterUnitEvent(10806, 4, 'mob10806_Die')
